CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=main.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=hw666


all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@ && hg ci -m "-"

.cpp.o:
	$(CC) -MD $(CFLAGS) $< -o $@

include $(wildcard   *.d)

clean:
	rm --force *.o


